package br.com.felix.clearcase.command;

import java.util.Comparator;

/**
 * This comparator is used to sort ClearToolCommands by the alphabetical order of the target files.
 * */
public class CommandFilenameSort implements Comparator<ClearToolCommand>{

	public int compare(ClearToolCommand ctc1, ClearToolCommand ctc2) {
		return ctc1.getFile().getName().toLowerCase().compareTo(ctc2.getFile().getName().toLowerCase());
	}
}
